﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DotNet.Utilities;
using System.Data;

namespace XTKF
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
           if(!IsPostBack)
           {
               GridViewEx1.OnBind();
           }
        }
        public void Bind()
        {
            GridViewEx1.DataSource = Datas.Table;
            //DataTable t = new DataTable();
            //GridViewEx1.DataSource = CsvHelper.csv2dt(System.IO.Path.Combine(HttpRuntime.AppDomainAppPath, "CDriveDirs.Csv"), 2, t);
        }

        protected void Button1_Click(object sender, EventArgs e)
        {

            GridViewEx1.OnBind();
  
        }
    }
    
}
